<?php


namespace app\index\controller;


use app\index\model\User;
use think\Db;

class Search
{
    public function index()
    {
        $result = Db::name('user')->where('id', 233)->select();

    }

    public function search()
    {
        $result = User::withSearch(['email'], ['email' => 'x'])->select();
//        return Db::getLastSql();
//        $result = User::
        return json($result);
    }
}